# Copyright (c) 2020 ARM Limited. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

add_subdirectory(COMPONENT_WHD EXCLUDE_FROM_ALL)

add_library(mbed-portenta-h7-m4 INTERFACE)

target_sources(mbed-portenta-h7-m4
    INTERFACE
        PeripheralPins.c
        portenta_power.cpp
)

target_include_directories(mbed-portenta-h7-m4
    INTERFACE
        .
)

target_link_libraries(mbed-portenta-h7-m4 INTERFACE mbed-stm32h747xi-cm4)


add_library(mbed-portenta-h7-m7 INTERFACE)

target_sources(mbed-portenta-h7-m7
    INTERFACE
        PeripheralPins.c
        portenta_power.cpp
)

target_include_directories(mbed-portenta-h7-m7
    INTERFACE
        .
)

target_link_libraries(mbed-portenta-h7-m7 INTERFACE mbed-stm32h747xi-cm7)
